As the user adjusts the control, ScrollControl is constantly sending the current value of the control in a variable called “curCtlValue”. You can use this variable to adjust whatever the control is meant to manipulate. In addition, you can also use this variable to set initial control setting after the control has been used. Here is an example:
on openCard
global curCtlValue   --since it’s being set across handlers, it needs to be global
put 2 into curCtlValue--this sets it to 2 when the card opens, ignoring what user set it to previously
end openCard
on mouseEnter
global curCtlValue --besides the above reason, resetting initially doesn’t work unless it’s global
ScrollControl "0","10",curCtlValue --scrollbar is set to whatever is in curCtlValue at the time
put curCtlValue into adjustSomething --use new setting to adjust some value